[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 wherey()                Get Vertical Position of Cursor in Text Window

 #include   <conio.h>

 int        wherey(void);

    wherey() returns the cursor's window-relative vertical position (y-
    coordinate).

       Returns:     An integer value in the range of 1 to 25.

   Portability:     IBM PC and compatibles only.

   -------------------------------- Example ---------------------------------

    The following statements get the cursor's position in the current
    window.

           #include <conio.h>

           main()
           {
               window(40,1,80,25);
               cputs("Current Window\n");
               xcoord = wherex();
               ycoord = wherey();
               printf("Cursor is at: (%d,%d)",xcoord,ycoord);
           }


See Also: gettextinfo() gotoxy() wherex()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson